package com.karrim.server.io.abstr;

import com.karrim.server.io.def.Parser;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;

/**
 *
 * @author andrea.cantafio
 */
public abstract class AbstractParser implements Parser {

    public AbstractParser() {
    }

    protected String load(File source) throws IOException {
       return new Scanner(source).useDelimiter("\\A").next();
    }
    
}
